package cn.fx.feign;

import cn.fx.domain.Store;
import cn.fx.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "store-server",fallbackFactory = StoreFallbackFactory.class)
@RequestMapping("/store")
public interface StoreFeignClient {

    @PostMapping
    JsonResult save(@RequestBody Store store);

}
